import request from "@/utils/request"

export default {
    //条件查询，带分页
    getHospList(current,limit,hospSetObj){
        return request({
            url:`/admin/hosp/hospitalSet/findPageHospSet/${current}/${limit}`,
            method :'post',
            //params  //使用常规参数
            data : hospSetObj  //使用json
        })
    },
    //删除hospset，by id
    removeHospSetByid(id){
        return request({
            url:`/admin/hosp/hospitalSet/${id}`,
            method :'delete',
            //params  //使用常规参数
        })
    },
    //批量删除hospset，by idList
    batchDeleteHospSetByIdList(idList){
        return request({
            url:`/admin/hosp/hospitalSet/batchRemove`,
            method :'delete',
            //params  //使用常规参数
            data : idList
        })
    },
    //设置账号锁定与解锁
    lockHospitalSet(id,status){
        return request({
            url:`/admin/hosp/hospitalSet/lockHospitalSet/${id}/${status}`,
            method :'put',
            //params  //使用常规参数
        })
    },
    //设置账号锁定与解锁
    saveHospotalSet(hospitalSet){
        return request({
            url:`/admin/hosp/hospitalSet/saveHospotalSet`,
            method :'post',
            //params  //使用常规参数
            data : hospitalSet
        })
    },
    //医院设置id查询
    getHospSet(id) {
        return request ({
            url: `/admin/hosp/hospitalSet/getHospSet/${id}`,
            method: 'get'
        })
    },
    //修改医院
    updateHospSet(hospitalSet) {
        return request ({
            url: `/admin/hosp/hospitalSet/updateHospSet`,
            method: 'post',
            data : hospitalSet
        })
    },


}